package com.sc.nft.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel("创建dao权益身份卡")
public class DaoIdentityDTO {
    @ApiModelProperty("藏品id")
    @NotNull(message = "请选择藏品")
    private Long collectionId;

    @ApiModelProperty("身份名称")
    @NotBlank(message = "请输入身份名称")
    private String identityName;
    @ApiModelProperty("身份图标")
    @NotBlank(message = "请上传身份图标")
    private String identityIcon;

    @ApiModelProperty("身份名字")
    @Range(min = 1L,max=10L,message = "身份等级在1-10之间")
    @NotNull(message = "请输入身份等级")
    private Integer level;

    @ApiModelProperty("直推分红")
    @NotNull(message = "请输入直推分润比例")
    @Max(value =1,message = "比例不能超过100%")
    private BigDecimal directPushRatio;

    @ApiModelProperty("权益图")
    @NotBlank(message = "权益图不能为空")
    private String equityImage;


    @ApiModelProperty("商品名称")
    private String firstTitle;


    @ApiModelProperty("商品图")
    private String creationContent;


}
